/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.dip.dip.violation.impl;

/**
 *
 * @author 210227257
 */
public class MarksImpl {
    private int firstTermMark;
    private int secondTermMark;
    private int thirdTermMark;
    private int fourthTermMark;
    private int project;

    public MarksImpl(int firstMark, int secondMark, int thirdMark, int fourthMark, int projectMark){
        this.firstTermMark = firstMark;
        this.secondTermMark = secondMark;
        this.thirdTermMark = thirdMark;
        this.fourthTermMark = fourthMark;
        this.project = projectMark;
    }

    public MarksImpl() {
        
    }
    /**
     * @return the firstTermMark
     */
    public int getFirstTermMark() {
        return firstTermMark;
    }

    /**
     * @param firstTermMark the firstTermMark to set
     */
    public void setFirstTermMark(int firstTermMark) {
        this.firstTermMark = firstTermMark;
    }

    /**
     * @return the secondTermMark
     */
    public int getSecondTermMark() {
        return secondTermMark;
    }

    /**
     * @param secondTermMark the secondTermMark to set
     */
    public void setSecondTermMark(int secondTermMark) {
        this.secondTermMark = secondTermMark;
    }

    /**
     * @return the thirdTermMark
     */
    public int getThirdTermMark() {
        return thirdTermMark;
    }

    /**
     * @param thirdTermMark the thirdTermMark to set
     */
    public void setThirdTermMark(int thirdTermMark) {
        this.thirdTermMark = thirdTermMark;
    }

    /**
     * @return the fourthTermMark
     */
    public int getFourthTermMark() {
        return fourthTermMark;
    }

    /**
     * @param fourthTermMark the fourthTermMark to set
     */
    public void setFourthTermMark(int fourthTermMark) {
        this.fourthTermMark = fourthTermMark;
    }

    /**
     * @return the project
     */
    public int getProject() {
        return project;
    }

    /**
     * @param project the project to set
     */
    public void setProject(int project) {
        this.project = project;
    }
    
    public double getFinalMark(){
        return this.firstTermMark * 0.20 + this.secondTermMark * 0.20 + this.thirdTermMark * 0.25 + this.fourthTermMark * 0.25 + this.project * 0.10;
    }
}
